package com.atguigu.spzx.pay;

import com.atguigu.spzx.common.anno.EnableSpzxUserInfo;
import com.atguigu.spzx.common.config.SpzxAuthWhiteUrls;
import com.atguigu.spzx.common.interceptor.SpzxLoginAuthInterceptor;
import com.atguigu.spzx.common.interceptor.SpzxWebMvcConfigurer;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication(exclude = {
        SpzxWebMvcConfigurer.class,
        SpzxAuthWhiteUrls.class,
        SpzxLoginAuthInterceptor.class

})
@EnableSpzxUserInfo //启用登录拦截器 可以获取登录信息透传
@MapperScan(basePackages = {"com.atguigu.spzx.pay.mapper"})
@EnableFeignClients(basePackages = {"com.atguigu.spzx"})
@ComponentScan(basePackages = {"com.atguigu.spzx.product" , "com.atguigu.spzx.pay"
})
//EnableFeignClients扫描加了FeignClient注解的接口 只要保证扫描包范围无误即可
//@EnableProductClient
public class SpzxPayApplication {

    public static void main(String[] args) {

        SpringApplication.run(SpzxPayApplication.class, args);
    }

}
